<!-- This is the overall template, wcich implement the header & footer.
The $main_content is a variable-view, and is set regarding on the users behavior
on the site.-->

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <title><?php echo $title; ?></title>
<?php
//echo link_tag('css/960.css');
echo link_tag('css/default.css');
?>
<noscript>
Javascript is not enabled! Please turn on Javascript to use this site.
</noscript>

<script type="text/javascript">
//<![CDATA[
base_url = '<?= base_url();?>';
//]]>
</script>
</head>
<body>
<div id="wrapper">
  <div id="header">
  <?php $this->load->view('includes/header');?>
  </div>

  <?php if ($this->session->userdata('is_logged_in'))
        { ?>
            <div id="leftbar">
            <?php $this->load->view('includes/leftbar');?>
            </div>
  <?php } ?>
  
    
  <div id="main">
  <?php $this->load->view($main_content);?>
  </div>

  <div id="footer">
  <?php $this->load->view('includes/footer');?>
  </div>
</div>
</body>
</html>
